import request from '@/utils/request'

// 根据ID查询详情数据
export function getInfoById03(itemId, index) {
  return request({
    url: `/biz/item/03/getInfoById/${itemId}/${index}`,
    method: 'get',
  })
}

// 1.修改
export function saveInfo03(data) {
  return request({
    url: '/biz/item/03/saveInfo',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}

// 1.直接荧光屏透视灵敏度
export function dsa(data) {
  return request({
    url: '/biz/item/03/dsa',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}

export function addDetector(resultId) {
  return request({
    url: `/biz/item/03/addDetector/${resultId}`,
    method: 'post',
  })
}
export function removeDetector03(resultId, index) {
  return request({
    url: `/biz/item/03/removeDetector/${resultId}/${index}`,
    method: 'post',
  })
}
